/**
 * 
 */
package com.manthano.applogin.authorization.bo;

import org.springframework.security.core.GrantedAuthority;

/**
 * @author Dell
 */
public class UserRole implements GrantedAuthority
{

	/**
	 * 
	 */
	private static final long	serialVersionUID	= 3863063799882910997L;
	private String				roleId				= null;
	private String				userId				= null;
	private String				rolename			= null;

	/**
	 * @return the roleId
	 */
	public String getRoleId()
	{
		return roleId;
	}

	/**
	 * @param roleId
	 *            the roleId to set
	 */
	public void setRoleId(String roleId)
	{
		this.roleId = roleId;
	}

	/**
	 * @return the userId
	 */
	public String getUserId()
	{
		return userId;
	}

	/**
	 * @param userId
	 *            the userId to set
	 */
	public void setUserId(String userId)
	{
		this.userId = userId;
	}

	/**
	 * @return the rolename
	 */
	public String getRolename()
	{
		return rolename;
	}

	/**
	 * @param rolename
	 *            the rolename to set
	 */
	public void setRolename(String rolename)
	{
		this.rolename = rolename;
	}

	@Override
	public String getAuthority()
	{
		return getRolename();
	}

}
